import { _decorator, Component, Node, Vec3 } from 'cc';
import { PathMove } from './PathMove';
const { ccclass, property } = _decorator;

@ccclass('PathEvent')
export class PathEvent extends Component {
    @property(PathMove)
    public pathMove: PathMove = null!; // PathMove 脚本的节点

    @property(Node)
    public target: Node = null!; // 需要操作的目标物体

    public onLoad(): void {
        this.pathMove.events.push(()=>{
            this.addEvent();
        });
    }

    public addEvent()
    {
        console.log("基类~~~~");
    }
}
